package com.java.service;

import com.java.model.*;
import org.springframework.ui.Model;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IndexService {
    // 广告主登录
    Result login(Account account, HttpServletRequest request, Model model);
    //注册发送验证码
    Result register(String phoneNum,HttpServletRequest request,Account account);
    //注册时校验验证码是否正确
    Result CheckCode(Account account);
    //忘记密码时校验验证码是否正确
    Result CheckCode2(Account account);
    //忘记密码发送验证码
    Result forget(String phoneNum,HttpServletRequest request,Account account);
    //媒体主入驻发送验证码
    Result forgetMedia(String phoneNum,HttpServletRequest request,Account account);
    //修改密码
    Result updatePwd(Account account);
    //个人中心信息
    Account Personal(int id, HttpServletRequest request, Model model);
    //编辑个人信息
    Result modify(Account account);
    Result get(int id);
    //查询余额
    Advertiser balance(int id, HttpServletRequest request, Model model);
    //充值余额
    Result recharge(int id, Double amount);
    //查询行业名称
    List<Classify> listApply(Classify classify);
    //立即投放
    Result apply(Apply apply);

}
